

function addformformdata1()
{

   
    $("#addform").append('<div id="feature'+rowdiv+'" class="itPlg addInfoPlug featureclass">'+dataform['formdata1']+"</div>");
    var rownow=rowdiv;

   
   
   
   $('#feature'+rownow+' .deleterowbutton').click(function(){
   
    $('#feature'+rownow).remove();
    
   });
  
  
    
    
    
    
    rowdiv++;

}
function saveformformdata1(id,plugid)
{
   var obj={};
   obj={
   plugid:plugid,
   uip:$("#"+id+' input[name="uip[]"]').val(),
   download:$("#"+id+' input[name="download[]"]').val(),
   engagement:$("#"+id+' input[name="engagement[]"]').val(),
   likefollow:$("#"+id+' input[name="likefollow[]"]').val(),
   printing:$("#"+id+' input[name="printing[]"]').val(),
   email:$("#"+id+' input[name="email[]"]').val(),
   pageview:$("#"+id+' input[name="pageview[]"]').val(),
   phone:$("#"+id+' input[name="phone[]"]').val()
   
   
   
   };
   
   return obj;


}
function getformformdata1(dataplugin)
{

var code = '<div class="ldIt wrpFrmLd wrpInfoPlgLd clBg4">\n';
code += '<div class="wrpHdInfoGen mgBtm10">\n';
code += '<h2 class="clTxt2 fs04 boldGen">Information</h2>\n';
code += '</div>\n';
code += '<table class="tbGenInfo tbFrmLd clTxt3 fs03">\n';
code += '<tbody><tr>\n';
code += '<th>UIP</th>\n';
code += '<td>'+dataplugin.uip+'</td>\n';
code += '</tr>\n';
code += '<tr>\n';
code += '<th>Download</th>\n';
code += '<td>'+dataplugin.download+'</td>\n';
code += '</tr>\n';
code += '<tr>\n';
code += '<th>Engagement</th>\n';
code += '<td>'+dataplugin.engagement+'</td>\n';
code += '</tr>\n';
code += '<tr>\n';
code += '<th>Like &amp; Follow</th>\n';
code += '<td>'+dataplugin.likefollow+'</td>\n';
code += '</tr>\n';
code += '<tr>\n';
code += '<th>No. Printing</th>\n';
code += '<td>'+dataplugin.printing+'</td>\n';
code += '</tr>\n';

code += '<tr>\n';
code += '<th>PageView</th>\n';
code += '<td>'+dataplugin.pageview+'</td>\n';
code += '</tr>\n';

code += '</tbody></table>\n';
code += '<div class="wrpHdInfoGen mgBtm10">\n';
code += '<h2 class="clTxt2 fs04 boldGen">Contact</h2>\n';
code += '</div>\n';
code += '<table class="tbGenInfo tbFrmLd clTxt3 fs03">\n';
code += '<tbody><tr>\n';
code += '<th>Email</th>\n';
code += '<td>'+dataplugin.email+'</td>\n';
code += '</tr>\n';
code += '<tr>\n';
code += '<th>Phone</th>\n';
code += '<td>'+dataplugin.phone+'</td>\n';
code += '</tr>\n';
code += '</tbody></table>\n';
code += '</div>';

return code;


}
 function editformformdata1(datarow)
 {
     addformformdata1();
     var rownow= rowdiv-1;
     $('#feature'+rownow+'  input[name="uip[]"]').val(datarow.uip);
     $('#feature'+rownow+'  input[name="download[]"]').val(datarow.download);
     $('#feature'+rownow+'  input[name="engagement[]"]').val(datarow.engagement);
     $('#feature'+rownow+'  input[name="likefollow[]"]').val(datarow.likefollow);
     $('#feature'+rownow+'  input[name="printing[]"]').val(datarow.printing);
     $('#feature'+rownow+'  input[name="pageview[]"]').val(datarow.pageview);
     $('#feature'+rownow+'  input[name="email[]"]').val(datarow.email);
     $('#feature'+rownow+'  input[name="phone[]"]').val(datarow.phone);

  
 }